package dk.mirasola.systemtraining.server.entity;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Parent;
import com.googlecode.objectify.annotation.Unindexed;

import javax.persistence.Id;
import java.util.Date;

public class BiddingSession {
    @Id
    Long id;

    @Parent
    Key<BiddingSet> biddingSetKey;

    @Unindexed
    private Date started;

    private Date ended;

    public BiddingSession() {
    }

    public Long getId() {
        return id;
    }

    public BiddingSession(Key<BiddingSet> biddingSetKey) {
        this.biddingSetKey = biddingSetKey;
    }

    public Key<BiddingSet> getBiddingSetKey() {
        return biddingSetKey;
    }

    public Date getStarted() {
        return started;
    }

    public void setStarted(Date started) {
        this.started = started;
    }

    public Date getEnded() {
        return ended;
    }

    public void setEnded(Date ended) {
        this.ended = ended;
    }
}
